// let num = 3.1415926535897
// //验证了基础可以调用方法  numer.toFixed()
// console.log("num.toFixed(4)", num.toFixed(4));

// let num2 = 18;
// console.log("num2.toString()", num2.toString());
// console.log("num2.toString(16)", num2.toString(16));


//定义对象
let person = new Object()

//给person注册方法、属性
person.name = "jshand"
person.age = 19
person.sayHi = function () {
    console.log(`我是${this.name},今年 :${this.age}`);

}

console.log("person.name", person.name);
console.log("person.age", person.age);
person.sayHi()


let person2 = new Object()

//给person注册方法、属性
person2.name = "张飞"
person2.age = 20
person2.sayHi = function () {
    console.log(`我是${this.name},今年 :${this.age}`);

}

console.log("person2.name", person2.name);
console.log("person2.age", person2.age);
person2.sayHi()











